<?php
/*
	辅助应用
*/
defined('BY_JYA') or exit('error');
list($plugin_name)=$arguments;
$list=array();
$list[0] =$plugin_name;
if($plugin_name){
	if (method_exists($this->plugin($plugin_name),'getplugins')){
		$getplugins = $this->plugin($plugin_name)->getplugins();
		foreach($getplugins as &$item){
			foreach($item['list'] as $k=>&$p){
				$install = check_permission($p['name']);
				if($install && $p['name'] !='jy_diypage'){
					$list[]=$p['name'];
				}
			}
		}
	}
}

return  $list;